import {baseUrl} from './config.js'

export function toplist() {
	return uni.request({
		url: `${baseUrl}/toplist/detail`,
		method: "GET"
	}).then(res => {
		return res.data.list.slice(0, 4);
	})
}


export function musicList(listId)
{
	return uni.request({
		url:`${baseUrl}/playlist/detail?id=${listId}`,
		method:'GET'
	})
}